package cn.edu.svtcc.concroller;

import cn.edu.svtcc.Service.ICitySevice;
import cn.edu.svtcc.Service.Impl.CityServiceImpl;
import cn.edu.svtcc.domain.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CityController {
    @Autowired
    private CityServiceImpl cityService;
    @GetMapping("/city")
    public Result  getCity() {
        Result result = new Result();
        result.setStatus(200);
        result.setMsg("success");
        result.setData("上海");
        return result;
    }
}
